<?php
namespace haibao\cms\business\starpk;
use haibao\cms\data\starpk\StarPkProperty as StarPkPropertyData;
class StarPkProperty extends \haibao\cms\business\Base{
    
	public static function getStarPkNum($filter){
		
		$data = new StarPkPropertyData;
		return $data->getOne($filter);
	}
	
	public static function updateCommentNum($starPkId,$num=1,$isSub=false){
		if(!$starPkId){
			throw new \haibao\cms\business\BusinessException('Id不能为空');
		}
		$data = new StarPkPropertyData;
		$data->updateCommentNum((int)$starPkId,$num,$isSub);
	}
}